<template>
  <div>
    个人中心
  </div>
</template>

<script>
import { Dialog } from 'vant'
export default {
  data () {
    return {

    }
  },

  created () {
    const token = localStorage.getItem('wyy-token')
    if (!token) {
      Dialog.confirm({
        title: '网易云',
        message: '是否去登录？'
      })
        .then(() => {
          this.$router.push('/login')
        })
        .catch(() => {
          // on cancel
        })
    }
  },

  methods: {

  }
}
</script>

<style scoped lang='less'>

</style>
